import 'package:base_plugin/base_plugin.dart';
import 'package:finance_app/src/common/app_colors.dart';
import 'package:finance_app/src/common/app_spaces.dart';
import 'package:finance_app/src/widgets/wrapper/normal_form_wrapper.dart';
import 'package:flutter/material.dart';

class ContactPersonItem extends StatelessWidget {
  final String title;
  final String content;
  final String phoneNumber;
  final String position;

  const ContactPersonItem({Key key, this.title, this.content, this.phoneNumber, this.position})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return NormalFormWrapper(
      topPadding: getDp(18),
      bottomPadding: getDp(16),
      hasBottomBorder: true,
      child: Row(
        children: [
          Expanded(
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Text(
                  '$title',
                  style: TextStyle(
                    color: aceBlackColor,
                    fontSize: getSp(16),
                    fontWeight: FontWeight.w700,
                    height: 14 / 16,
                  ),
                ),
                AppSpaces.h5,
                Text(
                  '$position',
                  style: TextStyle(
                    color: aceBlackColor,
                    fontSize: getSp(14),
                    fontWeight: FontWeight.w400,
                    height: 14 / 16,
                  ),
                ),
              ],
            ),
          ),
          Text(
            phoneNumber,
            style: TextStyle(
              color: aceBlackColor,
              fontSize: getSp(16),
              fontWeight: FontWeight.w700,
              height: 14 / 16,
            ),
          )
        ],
      ),
    );
  }
}
